package com.example.tests;

import org.testng.annotations.Test;

public class ContactModificationTests extends TestBase {
	
   @Test
   public void modifySomeContact() { 
	 app.getNavigationHelper().openMainPage();
	 app.getContactHelper().initContactPage(1);
	 ContactData contact = new ContactData();
	 contact.firstname = "new firstname";
	 contact.lastname = "";
	 contact.address = "";
	 contact.homePhone = "";
	 contact.mobilePhone = "";
	 contact.workPhone = "";
	 contact.email = "";
	 contact.email2 = "";
	 contact.birthDay = "-";
	 contact.birthMonth = "-";
	 contact.birthYear = "";
	 contact.address2 = "";
	 contact.phone2 = "";		 
	 app.getContactHelper().fillContactForm(contact);
	 app.getContactHelper().submitContactModification();
	 app.getContactHelper().returnToHomePage();
   }
}
